import { Module } from '@nestjs/common'

import { SseService } from '~/modules/sse/sse.service'

import { DictItemModule } from '~/modules/system/dict-item/dict-item.module'
import { DeviceModule } from '../device/device.module'
import { UserModule } from '../user/user.module'
import { DataController } from './data.controller'
import { DataService } from './data.service'

const providers = [DataService, SseService]

@Module({
  imports: [
    UserModule,
    DeviceModule,
    DictItemModule,
  ],
  controllers: [DataController],
  providers: [...providers],
  exports: [...providers],
})
export class DataModule {}
